Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature disable tests #796

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

igordust
Copy link
Contributor

@igordust igordust commented Mar 7, 2025

Why?

The bootstrap pipeline runs unit tests on ADF every time it is triggered. This implies the download of the development packages and the whole test suite to run, from my measurements, this adds 5-6 minutes to the overall execution time.

The current PR introduces a parameter in adfconfig.ymlthat disables the tests. If the parameter is not present, the tests are disabled by default.

What?

Description of changes:

  • Added lookup of the parameter config.run-tests in adfconfig.yml
  • Split the python packages installation in runtime packages and dev packages
  • put dev packages installation and test under the condition that run-tests = enabled
  • Added the default parameter in adfconfig.yml.j2

By submitting this pull request, I confirm that you can use, modify, copy, and
redistribute this contribution, under the terms of your choice.

Copy link
Collaborator

@sbkok sbkok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contributing this optimization.
I agree, for most ADF users the code is not changed outside of deploying ADF updates.

However, the default should be enabled as that is the safest approach.

Could you also update the docs/admin-guide.md to include the new config option?

sbkok
sbkok previously approved these changes Mar 11, 2025
Copy link
Collaborator

@sbkok sbkok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thank you for contributing this.

@sbkok sbkok requested review from StewartW and Alexpngal March 11, 2025 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants